package top.continew.admin.req.pdnew;

import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.Date;

/**
 * @program: examstar-manger-api
 * @description: 按课程章节配置
 * @author: Xiong weiqiang
 * @create: 2025-07-01 19:17
 */
@Data
public class ProductCourseSettingCourseLessonSaveDto {
    @NotNull(message = "课程或章节id不能为空")
    private Long parentId;
    @NotNull(message = "需要指定课程或章节")
    private String parentType;
    @NotNull(message = "合作期单次购买天数")
    private Integer unitPayDay;
    @NotNull(message = "合作期开始日期不能为空")
    private Date corpStartTime;
    @NotNull(message = "合作期结束日期不能为空")
    private Date corpEndTime;
}